package com.gaocf.designpatterns.create.singleton;

/**
 * 饿汉式：线程安全、效率高、非延迟加载
 */
public class Singletion1 {
    // 类加载的时候直接创建、利用率比较低
    private static Singletion1 instance = new Singletion1();

    private Singletion1() {

    }

    public static Singletion1 getInstance() {
        return instance;
    }
}
